package com.hyk.mapper;

import com.hyk.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyk.entity.request.UserLoginRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hyk
 * @since 2021-03-10
 */
public interface UserMapper extends BaseMapper<User> {

    List<User> listByUserName(@Param("request") UserLoginRequest request);

    User selectUser(@Param("username") String username);
}
